﻿using Microsoft.Practices.Prism.Commands;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace SearchScreen.AdditionalCriteriaModule.ViewModel
{
    class AdditionalCriteriaViewModel
    {
        public DelegateCommand LoadAdditionnalCriteria { get; private set; }

        public Dictionary<string, FrameworkElementFactory> ExtendedComponents { get; set; }

        #region Constructor
        public AdditionalCriteriaViewModel()
        {

            ExtendedComponents = new Dictionary<string, FrameworkElementFactory>();

            var factory = new FrameworkElementFactory(typeof(TextBox));
            factory.SetValue(TextBox.WidthProperty, 100d);

            ExtendedComponents.Add("Label4", null);
            //ExtendedComponents.Add("Label2", "TextBox2");
            //ExtendedComponents.Add("Label3", "TextBox3");
            
            LoadAdditionnalCriteria = new DelegateCommand(
                () =>
                {

                }
            );
        }
        #endregion


    }
}

